package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.HistoricalSeismicData;
import com.css.fxfzypg.modules.baseData.queryParams.HistoricalSeismicDataQueryParams;
import com.css.fxfzypg.modules.baseData.entity.HistoricalSeismicDataVo;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

public interface HistoricalSeismicDataRepository {
    void updateHistoricalSeismicData(HistoricalSeismicData historicalSeismicData);

    void saveHistoricalSeismicData(HistoricalSeismicData historicalSeismicData);

    Map<String,Object> getAllHistoricalSeismicDataParams(HistoricalSeismicDataQueryParams queryParams, int curPage, int pageSize);

    HistoricalSeismicData getHistoricalSeismicDataById(String id);

    public List<HistoricalSeismicData> getHistoricalSeismicData();

    void deleteHistoricalSeismicDatasById(List<String> ids);

    List<HistoricalSeismicData> findFormDataListByParams(HistoricalSeismicDataQueryParams queryParams);

    List<HistoricalSeismicDataVo> getVo(HistoricalSeismicDataQueryParams queryParams);
    Integer countByCounty(String countyName);

    Integer countByCity(String cityName);

    Integer countByProvince(String name);

    Integer countByProvinceAndYear(String province, String taskYear);
}
